package com.example.demojasypt.api;

import com.example.demojasypt.dao.PbUserMapper;
import com.example.demojasypt.entity.PbUser;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
public class QuickStartController {
    @Resource
    private PbUserMapper pbUserMapper;

    @RequestMapping("/queryUser")
    @ResponseBody
    public List<PbUser> queryUser(){
        List<PbUser> users = pbUserMapper.queryUserList();
        return users;
    }
}
